package chapter05.Example10;

import java.io.IOException;
import java.util.Random;

public class Example10 {
  public static void main(String[] args) throws IOException {
      // System类
      long time = System.currentTimeMillis();
      System.out.println("time" + time);
      // Runtime类
      Runtime rt = Runtime.getRuntime();
//      while (true){
//          rt.exec("mspaint.exe");
//      }
      // Math类
      System.out.println(Math.random());
      System.out.println(Math.PI);
      // Random类
      Random random = new Random();
      for (int i = 0;i < 10; i++){
          System.out.println(random.nextInt(56));
      }
  }
}
